/*
 * @Author: canlong.shen
 * @Date: 2021-10-28 11:05:14
 * @LastEditors: your name
 * @LastEditTime: 2021-11-01 16:14:50
 * @Description: file content
 */

import Vuex from 'vuex'
// 插件
export default function createStore() {
    return new Vuex.Store({
        state: {
            count: 0
        },
        mutations: {
            updateCount(state, payload) {
                state.count = payload
            }
        }
    })
}

